package edu.imu.question.mapper;

import edu.imu.question.entity.TemplateQuestionOption;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TemplateQuestionOptionMapper {

    @Select("select id," +
            "question_id as questionId," +
            "option_text as optionText," +
            "option_order as optionOrder " +
            "from template_question_option where question_id=#{questionId}")
    List<TemplateQuestionOption> getByQuestionId(long id);
}
